#include "CuTest.h"

#include "test_sprout.h"
#include "sprout_util.h"

void test_hex_str_to_int(CuTest *tc)
{
    unsigned int ex = 0x7ABC;
    Result *res = hex_str_to_int("7ABC");
    unsigned int ac = to_u_int(res);
    CuAssertIntEquals(tc, ex, ac);
}

CuSuite *test_util_suite()
{
    CuSuite *suite = CuSuiteNew();
    SUITE_ADD_TEST(suite, test_hex_str_to_int);
    return suite;
}
